import request from '@/utils/request'

// 通过供应商获取价目表
export function queryPriceList(data) {
  return request({
    url: '/tJxSponge/queryPriceList',
    method: 'post',
    data
  })
}
// 海绵库列表
export function querySpongeList(data) {
  return request({
    url: '/tJxSponge/querySpongeList',
    method: 'post',
    data
  })
}
// 新增海绵库
export function insertSponge(data) {
  return request({
    url: '/tJxSponge/insertSponge',
    method: 'post',
    data
  })
}
// 修改海绵库
export function updateSponge(data) {
  return request({
    url: '/tJxSponge/updateSponge',
    method: 'put',
    data
  })
}
// 批量删除海绵库
export function deleteSponge(data) {
  return request({
    url: '/tJxSponge/deleteSponge',
    method: 'delete',
    data
  })
}
// 查询海绵库详情
export function querySpongeDetails(params) {
  return request({
    url: '/tJxSponge/querySpongeDetails',
    method: 'get',
    params
  })
}
// 反提交
export function notReviewSponge(data) {
  return request({
    url: '/tJxSponge/notReviewSponge',
    method: 'put',
    data
  })
}
// 反审核
export function againReviewSponge(data) {
  return request({
    url: '/tJxSponge/againReviewSponge',
    method: 'put',
    data
  })
}
// 审核
export function reviewSponge(data) {
  return request({
    url: '/tJxSponge/reviewSponge',
    method: 'put',
    data
  })
}
